//
//  MagazineCategoryCell.m
//  JianChaRiBao
//
//  Created by yuzhou on 13-5-15.
//  Copyright (c) 2013年 wzyk. All rights reserved.
//

#import "MagazineCategoryCell.h"
#import "MagazineCategoryView.h"

@interface MagazineCategoryCell ()
{
    MagazineCategoryView *magazineCategoryView;
}
@end

@implementation MagazineCategoryCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
//        self.bounds = CGRectMake(0, 0, 320, 155);
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        magazineCategoryView = [[[NSBundle mainBundle] loadNibNamed:@"MagazineCategoryView" owner:self options:nil] objectAtIndex:0];
        [self.contentView addSubview:magazineCategoryView];
    }
    return self;
}

- (void)setCategory:(NSDictionary *)category
{
    magazineCategoryView.category = category;
}

@end
